package com.yami.shop.bean.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @Author lth
 * @Date 2021/8/12 14:16
 */
@Data
public class ShopSigningInfoDTO {
    @Schema(description = "店铺id")
    private Long shopId;

    @Schema(description = "签约起始时间")
    @NotNull(message = "签约起始时间不能为空")
    private Date contractStartTime;

    @Schema(description = "签约终止时间")
    @NotNull(message = "签约终止时间不能为空")
    private Date contractEndTime;

    @Schema(description = "0普通店铺 1优选好店")
    @Max(value = 1, message = "只能为0或1")
    @Min(value = 0, message = "只能为0或1")
    private Integer type;
}
